package org.duiduo.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.duiduo.common.bean.BookVO;

import java.math.BigDecimal;

/**
 * 订单DTO
 *
 * @author liangze
 * @date 2021/9/27 10:14
 */
@Getter
@Setter
public class OrderDTO {

    private Integer id;

    private String name;

    private BigDecimal totalPrice;

    private BigDecimal payPrice;

    private BigDecimal discount;

    private Integer count;

    private BigDecimal transportPrice;

    private String orderNo;

    private Integer userId;

    private Integer bookId;

    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String payTime;

    private Integer state;

    private BookVO book;
}
